package com.jyu.apts.dto;

import com.jyu.apts.entity.OrganizationRole;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class OrganizationRoleDto {
	long id;//主键
	String name;//名称
	OrganizationDto organization;
	public OrganizationRoleDto convert(OrganizationRole organizationRole) {
		setId(organizationRole.getId());
		setName(organizationRole.getName());
		setOrganization(new OrganizationDto().convert(organizationRole.getOrganization()));
		return this;
	}
}